package br.com.kizura.service.producers;

import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import br.com.kizura.service.qualifiers.PersistenciaFactory;

public class PersistenceManager {

	@PersistenciaFactory
	@Inject
	private EntityManagerFactory emf;
	
	@Produces
	@RequestScoped
	public EntityManager createEntityManager(){
		return emf.createEntityManager();
	}
}
